<template>
  <div>user</div>
</template>

<script>
export default {
  name: "user",
  mounted() {
    //路由对象最重要的是对url的抽象
    //url:   协议://主机:端口/user/2?name=damu&age=18#123

    //$route.fullPath : /user/2?name=damu&age=18#123
    //$route.path : /user/2
    //$route.query : {name: "damu", age: "18"}
    //$route.hash : #123
    //$route.params: {id: "2"}
    console.log("mounted user")
  }
}
</script>

<style scoped>

</style>